package cn.xjt.screenShare.controller;

import javafx.fxml.Initializable;
import javafx.scene.Scene;
import javafx.scene.image.ImageView;
import javafx.scene.layout.Pane;

import java.net.URL;
import java.util.ResourceBundle;

public class ImageController implements Initializable {


    public ImageView imageView;


    public MainController mainController;
    public Pane panda;


    public void setMainController(MainController mainController) {
        this.mainController = mainController;
    }


    @Override
    public void initialize(URL location, ResourceBundle resources) {
        System.out.println(location);
        Scene scene = panda.getScene();
//        imageView.fitWidthProperty().bind(scene.widthProperty().divide(2));
//        imageView.fitHeightProperty().bind(scene.widthProperty().divide(2));
    }
}
